
<%@ page import="admin.Equipe" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'equipe.label', default: 'Equipe')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
  <div class="nav" role="navigation">
    <ul>
      <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
    </ul>
  </div>
  <div id="list-equipe" class="content scaffold-list" role="main">
    <h1>Lista Colaboradores</h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <table>
      <thead>
        <tr>

          <th>ID</th>
      <g:sortableColumn property="nome" title="${message(code: 'equipe.nome.label', default: 'Nome')}" />
      <g:sortableColumn property="imagem" title="${message(code: 'equipe.imagem.label', default: 'Imagem')}" />
      </tr>
      </thead>
      <tbody>
      <g:each in="${equipeInstanceList}" status="i" var="equipeInstance">
        <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
          <td><g:link action="show" id="${equipeInstance.id}">${fieldValue(bean: equipeInstance, field: "id")}</g:link></td>
        <td><g:link action="show" id="${equipeInstance.id}">${fieldValue(bean: equipeInstance, field: "nome")}</g:link></td>
        <td>
        <g:link action="show" id="${equipeInstance.id}">
          <img width="200" src="${createLink(controller:'equipe', action:'view', id:equipeInstance.id)}"/>
        </g:link>
        </td>
        </tr>
      </g:each>
      </tbody>
    </table>
    <div class="pagination">
      <g:paginate total="${equipeInstanceTotal}" />
    </div>
  </div>
</body>
</html>
